﻿using System.Runtime.Serialization;
using Microsoft.Commerce.Contracts;

namespace MusicWorks.Service.DataContracts
{
    public class CatalogEntity : BaseCommerceEntity
    {
        public const string ModelNameDefintion = "CatalogEntity";

        public CatalogEntity() : base(ModelNameDefintion) { }
        public CatalogEntity(string modelNameDefinition) : base(modelNameDefinition) { }
        public CatalogEntity(CommerceEntity commerceEntity) : base(commerceEntity) { }

        /// <summary>
        /// Gets or sets the catalog id.
        /// </summary>
        /// <value>the id of the catalog</value>
        public string CatalogId
        {
            get { return _commerceEntity.GetPropertyValue(PropertyName.CatalogId) as string; }

            set { _commerceEntity.SetPropertyValue(PropertyName.CatalogId, value); }
        }

        #region Nested type: PropertyName

        public class PropertyName
        {
            public const string CatalogId = "CatalogId";
        }

        #endregion
    }
}